package com.smart.datasource;

public class CustomerContextHolder {

	private static final ThreadLocal<CustomerType> contentHolder = new ThreadLocal<>();
	
	public static void setCustomerType(CustomerType customerType) {
		contentHolder.set(customerType);
	}
	
	public static CustomerType getCustomerType() {
		return contentHolder.get();
	}
	
	public static void clearCustomerType() {
		contentHolder.remove();
	}
}

